<?php

namespace App\Models\ClassEr;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class ClassInfo  extends Model
{
    use SoftDeletes;

    protected $table = 'class_er';

    /**
     * 获取班级是否有学生
     */
    public function student()
    {
        return $this->hasOne("App\Models\Student\Student",'class_id','id');
    }

}
